﻿using Qi.Data;
using System.Collections.Generic;

namespace Standards.Data
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class UserDto : Entity
    {
        private IList<RoleDto> roles;

        public string Name { get; set; }

        public bool IsActive { get; set; }

        public bool IsAdmin { get; set; }

        public IList<RoleDto> Roles 
        {
            get
            {
                return this.roles ?? (this.roles = new List<RoleDto>());
            }

            set
            {
                this.roles = value;
            }
        }
    }
}